#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int arr1[3] = { 1,2,3 };
	int arr2[3] = { 4,5,6 };
	int tmp = 0, i = 0;
	for (i = 0; i <= 2; i++)
	{
		tmp = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = tmp;
	}

	for (i = 0; i <= 2; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\n");
	for (i = 0; i <= 2; i++)
	{
		printf("%d ", arr2[i]);
	}

	return 0;
}